package cat

// Cat 日志相关的常量

// NameType 描述 cat _n 的前缀，标识当前日志是master, 还是slave
type NameType string

const (
	Master NameType = "master"
	Slave  NameType = "slave"

	// CephProxy Type
	CephProxyCatObjectType = "CephProxy.Object"
	CephProxyCatBucketType = "CephProxy.Bucket"
	UnknowType             = "unknow"
)

const (
	CephProxyCatCephStateType = "CephProxy.CephStateMachine"

	CephStateAllDownName = "allDown"   // 节点全挂了
	CephStateDownName    = "cephDown-" // 单个节点挂了
	CephStateUpName      = "cephUp-"   // 节点重现上线
	CephMSSwitchName     = "msSwitch"  // 主从发生切换
)

const (
	CephProxyCatFailedType = "CephProxy.Failed"
	ServerPanicName        = "serverPanic"
	ErrorFilterName        = "errorFilter"
	MSRespCodeDiff         = "msRespCodeDiff"
)

const (
	CephProxyCatMongoType = "CephProxy.Mongo"
)

const (
	MultiStateMachineType = "CephProxy.MultiStateMachine"
	StateMachineType      = "CephProxy.StateMachine"
	CephNodeUpdated       = "cephNodeUpdated"
)
